package com.snoopy.gas1.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sales_record {

    //id,oil_id,sales_quantity,sales_price,sales_date,customer
    private int id;
    private int oilId;
    private int salesQuantity;
    private BigDecimal salesPrice;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private Date salesDate;
    private String customer;
}